//
//  InviteFriendImgCell.m
//  MobileShoppingMall
//
//  Created by 冯传昌 on 2021/4/22.
//  Copyright © 2021 冯传昌. All rights reserved.
//

#import "InviteFriendImgCell.h"

@implementation InviteFriendImgCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        UIImageView *inviteBgImgV = [[UIImageView alloc] initWithFrame:CGRectMake(12, 25, ScreenWidth-24, (ScreenWidth-24)/7)];
        inviteBgImgV.image = LoadImage(@"指南商城_邀请好友背景");
        [self addSubview:inviteBgImgV];
        
        UIImageView *inviteImgV = [[UIImageView alloc] initWithFrame:CGRectMake(inviteBgImgV.right-((inviteBgImgV.height+20)*6/7)-10, inviteBgImgV.top-15, (inviteBgImgV.height+20)*6/7, inviteBgImgV.height+20)];
        inviteImgV.image = LoadImage(@"指南商城_邀请好友");
        [self addSubview:inviteImgV];
        
    }
    return self;
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
